From 3c138235213c28797f86943e6d265bb50800f1b3 Mon Sep 17 00:00:00 2001 From: Brian Koropoff Date: Sun, 28 Sep 2014 14:39:06 -0700 Subject: [PATCH] Fix infinite recursion in CargoError impl for Box Insert necessary explicit derefs. --- src/cargo/util/errors.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo/util/errors.rs b/src/cargo/util/errors.rs index c9e3a5ae2..594ea8ad9 100644 --- a/src/cargo/util/errors.rs +++ b/src/cargo/util/errors.rs @@ -76,19 +76,19 @@ impl Show for Box { impl CargoError for Box { fn description(&self) -> String { - (*self).description() + (**self).description() } fn detail(&self) -> Option { - (*self).detail() + (**self).detail() } fn cause(&self) -> Option<&CargoError> { - (*self).cause() + (**self).cause() } fn is_human(&self) -> bool { - (*self).is_human() + (**self).is_human() } fn box_error(self) -> Box { -- 2.30.2